package com.itcast.fjs.feign;

import com.itcast.fjs.feign.fallback.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author feng js
 */
@FeignClient(value = "user-service",fallback = UserClientFallback.class,
        configuration = FeignLogConfig.class)
public interface UserClient {
    @GetMapping("user/{id}")
    String findUser(@PathVariable("id") Integer id);
}
